/**
 * 实现音乐家类
 *
 * @author zhu
 * @date 2024-03-12
 */
public class Musician {
    public void perform(Instrument instrument){
        instrument.play();
    }

    public static void main(String[] args) {
        Musician musician = new Musician();
        Guitar guitar = new Guitar();
        musician.perform(guitar);
    }
}
